.branch-select {
  cursor: pointer;

  &.no-border-select {
    .#{$teamix-prefix}input {
      .branch-select-label {
        color: $gray-08;
        font-weight: 500;
        font-size: var(--font-size-subhead, 16px);
      }
    }
  }

  &-label {
    display: flex;
    align-items: center;

    &-icon {
      color: $gray-06;
      margin-right: 4px !important;
    }

    .at-title {
      max-width: calc(100% - 24px);
    }
  }
}

.branch-tag-select-pop-container {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding: 4px 0;

  .#{$teamix-prefix}tabs-bar {
    padding-left: 12px;
  }

  .branch-tag-select-list {
    max-height: 285px;
    overflow: auto;
    margin-top: 4px;
  }

  .branch-tag-select-visible-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px 4px 0;
    height: 36px;
    cursor: pointer;
    line-height: initial; // 不写这个会继承 .next-form-item-control 的 line-height: 0;

    &:hover {
      background: $gray-01;
    }

    &-left {
      flex: 1;
      max-width: calc(100% - 40px);
      // padding-right: 12px;
      display: flex;
      align-items: center;

      .select-label {
        font-size: 14px;
        color: $gray-08;
        line-height: 22px;
        // 使用max-width在缩放情况下失败，直接使用width
        width: 100%;
        display: inline-block;

        &.disabled {
          color: $gray-05;
        }
      }
    }

    &-right {
      width: 40px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;

      .select-icon {
        color: $primary-brand;
      }
    }
  }

  .access-select-loading {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
